package com.example.service;

import org.springframework.security.core.userdetails.UserDetailsService;

/**
 * @author AiXu
 * @version v1.0
 * @since 2023/9/12 11:40
 */

public interface AuthorizeService extends UserDetailsService {

    // 发送邮箱
    String sendValidatedEmail(String email, String sessionID, boolean hasAccount);

    // 验证并注册
    String validateAndRegister(String username, String password, String email, String code, String sessionID );

    String validateOnly(String email, String code, String sessionID);

    boolean resetPassword(String email, String password);
}
